#ifndef SKYBOX_SAMPLE_H
#define SKYBOX_SAMPLE_H
#include "SampleBase.h"
#include "skybox.h"
#include "grid.h"
#include "glslprogram.h"
#include "glm\glm.hpp"
#include "objmesh.h"
namespace ShaderLab {
	class SkyBoxSample : public SampleBase {
	public:
		SkyBoxSample();
		~SkyBoxSample();

		void Init();
		void Update(float time);
		void Render();
		void Imgui();
		void ShutDown();
	public:
		void CreateShader();
	private:
		GLSLProgram program;
		GLSLProgram skyProgram;
		GLSLProgram gridProgram;
		std::unique_ptr<SkyBox> sky;
		std::unique_ptr<ObjMesh> mesh;
		std::unique_ptr<Grid> grid;
		glm::mat4 model, view, projection;
		glm::vec4 color;
		float reflect;
		float deltaTime, lastFrame;

	};
}
#endif // !TEMPLATE_SAMPLE_H

